<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/js/jQuery3.6.0.js" type="text/javascript"></script>
</head>
<body>
<script>
    window.onload = function () {
        getCode();
    }

    function getCode() {
        $.ajax({
            url: 'https://aicode.my-youth.cn/base64img',
            method: 'post',
            data: {'data': ""},
            headers: {"authorization": "Basic NjNmODY3ZWVkNzQwNGIzMDhiOTVmZDkzNTBINDIkZjU6"},
            success: function (res) {
                console.log("验证码为：" + res.data);
            }
        })
    }

</script>

</body>
</html>